-
-
Notifications
You must be signed in to change notification settings - Fork 889
[gcloud] fix double decompression when using gzip #1457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@jschneier what are your thoughts on this change as opposed to using |
|
@jschneier I added a test. How do I run the tests in CI? |
|
@jschneier can you merge this? |
|
@jschneier can you look at this? |
|
@jschneier what do I need to do to get this PR looked at and approved? |
|
@thuibr can you confirm this fixes your issue? We will also need to fix CI. |
|
@jschneier, I double checked just now that this fixes the issue. I also made a change to the test that I think fixes CI. |
|
@jschneier do you need to run the CI? |
|
@jschneier Do you mind making a release for this change? |
The
self.blob.download_to_filealready performs decompression per this StackOverflow post. Rather than attempting to decompress the gzip file a second time and receiving an error, allowself.blob.download_to_fileto decompress it.An alternative to this would be to use the
raw_download=Truekwarg forself.blob.download_to_fileif that is desirable.This closes #1456.